package com.zuipin.entity;

import java.io.Serializable;
import java.math.BigDecimal;

import net.sf.json.JSONObject;

/**
 * 付款单表
 **/
@SuppressWarnings("serial")
public class PayOrder implements Serializable {
	private Long				id;							// 主键
	
	private Long				createId;					// 创建者（后台用户）
	
	private String				createTime;					// 创建时间
	
	private Long				updateId;					// 更新者（后台用户）
	
	private String				updateTime;					// 更新时间
	
	private Short				delFlag;					// 是否删除
	
	private Long				sysId;						// 来源系统
	
	private Long				createMemberId;				// 下单账户
	
	private Short				isSplitOrder;				// 是否拆分订单
	
	private BigDecimal			orderSum;					// 付款总额+运费（实际支付）（不含充值余额）
	
	private BigDecimal			freightSum;					// 运费
	
	private String				payType;					//
	
	private Short				payStatus;					// 是否支付 1是 0不是
	
	private String				payMethod;					// 支付方式：微信，支付宝，银联，快钱，余额抵扣，货到付款,(线下？？)
	
	private String				cancelTime;					// 取消付款时间
	
	private Long				useRedPacketId;				// 使用的红包
	
	private BigDecimal			useRedPacketSum;			// 使用的红包金额
	
	private Integer				useJfSum;					// 使用的积分（实际使用的积分单价*数量）
	
	private Integer				productJfSum;				// 积分商品 原价累加
	
	private Integer				giveJfSum;					// 赠送的积分
	
	private BigDecimal			useStoreValue;				// 使用充值余额
	
	private Short				isUseStoreValue;			// 是否使用充值
	
	private BigDecimal			useRebateSum;				// 使用的返佣
	
	private BigDecimal			giveCashBackSum;			// 赠送的返现
	
	private BigDecimal			useCashBackSum;				// 使用的返现
	
	private BigDecimal			totalWeight;				// 订单重量
	
	private Short				isBrushOrder;				// 是否刷单
	
	private Long				versionFreight;				// 邮费版本号
	
	private String				confimPayTime;				// 付款时间
	
	private Long				confimSysUserId;			// 确认付款人(客服操作人)
	
	private Long				invoiceInfoId;				// 发票信息ID
	
	private BigDecimal			productPaySum;				// 商品总价（原价*数量和）
	
	private String				device;
	
	private Long				cartRuleId;					// 购物车规则Id
	
	private String				redPacketName;				// 红包名称
	
	private BigDecimal			internalDiscountSum;		// 内部优惠价
	
	private BigDecimal			useRuleSum;					// 购物车优惠金额
	
	public static final Short	YES					= 1;	//
	
	public static final Short	NO					= 0;	//
	
	public static final int		PRE_HOLD_STOCK		= 1;	// 虚拟预占
	public static final int		PRE_RELEASE_STOCK	= 2;	// 释放预占
	public static final String	XSD					= "XSD";
	
	public static final String	FROM_DEVICE_PC		= "PC";
	public static final String	FROM_DEVICE_WAP		= "WAP";
	// public static final String PAY_ONLINE = "在线支付"; //在线支付
	// public static final String CASH_DELIVERY = "货到付款"; //货到付款
	// public static final String PAY_BY_BANK = "银行转账"; //银行转账
	// public static final String BALANCE_PAY = "余额支付"; //余额支付
	
	public void setId(Long id) {
		this.id = id;
	}
	
	public Long getId() {
		return this.id;
	}
	
	public void setCreateId(Long createId) {
		this.createId = createId;
	}
	
	public Long getCreateId() {
		return this.createId;
	}
	
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	
	public String getCreateTime() {
		return this.createTime;
	}
	
	public void setUpdateId(Long updateId) {
		this.updateId = updateId;
	}
	
	public Long getUpdateId() {
		return this.updateId;
	}
	
	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}
	
	public String getUpdateTime() {
		return this.updateTime;
	}
	
	public void setDelFlag(Short delFlag) {
		this.delFlag = delFlag;
	}
	
	public Long getCreateMemberId() {
		return createMemberId;
	}
	
	public void setCreateMemberId(Long createMemberId) {
		this.createMemberId = createMemberId;
	}
	
	public Short getDelFlag() {
		return this.delFlag;
	}
	
	public Long getSysId() {
		return sysId;
	}
	
	public void setSysId(Long sysId) {
		this.sysId = sysId;
	}
	
	public void setIsSplitOrder(Short isSplitOrder) {
		this.isSplitOrder = isSplitOrder;
	}
	
	public Short getIsSplitOrder() {
		return this.isSplitOrder;
	}
	
	public void setOrderSum(BigDecimal orderSum) {
		this.orderSum = orderSum;
	}
	
	public BigDecimal getOrderSum() {
		return this.orderSum;
	}
	
	public void setFreightSum(BigDecimal freightSum) {
		this.freightSum = freightSum;
	}
	
	public BigDecimal getFreightSum() {
		return this.freightSum;
	}
	
	public String getPayType() {
		return payType;
	}
	
	public void setPayType(String payType) {
		this.payType = payType;
	}
	
	public String getPayMethod() {
		return payMethod;
	}
	
	public void setPayMethod(String payMethod) {
		this.payMethod = payMethod;
	}
	
	public Short getPayStatus() {
		return payStatus;
	}
	
	public void setPayStatus(Short payStatus) {
		this.payStatus = payStatus;
	}
	
	public void setCancelTime(String cancelTime) {
		this.cancelTime = cancelTime;
	}
	
	public String getCancelTime() {
		return this.cancelTime;
	}
	
	public void setUseRedPacketId(Long useRedPacketId) {
		this.useRedPacketId = useRedPacketId;
	}
	
	public Long getUseRedPacketId() {
		return this.useRedPacketId;
	}
	
	public void setUseRedPacketSum(BigDecimal useRedPacketSum) {
		this.useRedPacketSum = useRedPacketSum;
	}
	
	public BigDecimal getUseRedPacketSum() {
		return this.useRedPacketSum;
	}
	
	public void setUseJfSum(Integer useJfSum) {
		this.useJfSum = useJfSum;
	}
	
	public Integer getUseJfSum() {
		return this.useJfSum;
	}
	
	public void setGiveJfSum(Integer giveJfSum) {
		this.giveJfSum = giveJfSum;
	}
	
	public Integer getGiveJfSum() {
		return this.giveJfSum;
	}
	
	public void setUseStoreValue(BigDecimal useStoreValue) {
		this.useStoreValue = useStoreValue;
	}
	
	public BigDecimal getUseStoreValue() {
		return this.useStoreValue;
	}
	
	public void setUseRebateSum(BigDecimal useRebateSum) {
		this.useRebateSum = useRebateSum;
	}
	
	public BigDecimal getUseRebateSum() {
		return this.useRebateSum;
	}
	
	public void setGiveCashBackSum(BigDecimal giveCashBackSum) {
		this.giveCashBackSum = giveCashBackSum;
	}
	
	public BigDecimal getGiveCashBackSum() {
		return this.giveCashBackSum;
	}
	
	public void setUseCashBackSum(BigDecimal useCashBackSum) {
		this.useCashBackSum = useCashBackSum;
	}
	
	public BigDecimal getUseCashBackSum() {
		return this.useCashBackSum;
	}
	
	public void setTotalWeight(BigDecimal totalWeight) {
		this.totalWeight = totalWeight;
	}
	
	public BigDecimal getTotalWeight() {
		return this.totalWeight;
	}
	
	public void setIsBrushOrder(Short isBrushOrder) {
		this.isBrushOrder = isBrushOrder;
	}
	
	public Short getIsBrushOrder() {
		return this.isBrushOrder;
	}
	
	public void setVersionFreight(Long versionFreight) {
		this.versionFreight = versionFreight;
	}
	
	public Long getVersionFreight() {
		return this.versionFreight;
	}
	
	public void setConfimPayTime(String confimPayTime) {
		this.confimPayTime = confimPayTime;
	}
	
	public String getConfimPayTime() {
		return this.confimPayTime;
	}
	
	public Long getConfimSysUserId() {
		return confimSysUserId;
	}
	
	public void setConfimSysUserId(Long confimSysUserId) {
		this.confimSysUserId = confimSysUserId;
	}
	
	public void setInvoiceInfoId(Long invoiceInfoId) {
		this.invoiceInfoId = invoiceInfoId;
	}
	
	public Long getInvoiceInfoId() {
		return this.invoiceInfoId;
	}
	
	public void setProductPaySum(BigDecimal productPaySum) {
		this.productPaySum = productPaySum;
	}
	
	public BigDecimal getProductPaySum() {
		return this.productPaySum;
	}
	
	public String getDevice() {
		return device;
	}
	
	public void setDevice(String device) {
		this.device = device;
	}
	
	public static void main(String[] args) {
		System.out.println(JSONObject.fromObject(new PayOrder()).toString());
	}
	
	public Long getCartRuleId() {
		return cartRuleId;
	}
	
	public void setCartRuleId(Long cartRuleId) {
		this.cartRuleId = cartRuleId;
	}
	
	public String getRedPacketName() {
		return redPacketName;
	}
	
	public void setRedPacketName(String redPacketName) {
		this.redPacketName = redPacketName;
	}
	
	public BigDecimal getInternalDiscountSum() {
		return internalDiscountSum;
	}
	
	public void setInternalDiscountSum(BigDecimal internalDiscountSum) {
		this.internalDiscountSum = internalDiscountSum;
	}
	
	public BigDecimal getUseRuleSum() {
		return useRuleSum;
	}
	
	public void setUseRuleSum(BigDecimal useRuleSum) {
		this.useRuleSum = useRuleSum;
	}
	
	public Short getIsUseStoreValue() {
		return isUseStoreValue;
	}
	
	public void setIsUseStoreValue(Short isUseStoreValue) {
		this.isUseStoreValue = isUseStoreValue;
	}
	
	public Integer getProductJfSum() {
		return productJfSum;
	}
	
	public void setProductJfSum(Integer productJfSum) {
		this.productJfSum = productJfSum;
	}
	
}
